import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/parkStaticRule/list',
    method: 'post',
    data: query
  })
}

export function parkStaticRuleDetail(id) {
  return request({
    url: '/parkStaticRule/get/' + id,
    method: 'get',
  })
}

export function deleteParkStaticRule(query) {
  return request({
    url: '/parkStaticRule/deleteParkStaticRule',
    method: 'post',
    data: query
  })
}

export function createParkStaticRule(query) {
  return request({
    url: '/parkStaticRule/createParkStaticRule',
    method: 'post',
    data: query
  })
}

export function updateParkStaticRule(query) {
  return request({
    url: '/parkStaticRule/updateParkStaticRule',
    method: 'post',
    data: query
  })
}

export function selectAvailables(query) {
  return request({
    url: '/auth/listStaticRule',
    method: 'post',
    data: query
  })
}

//机构下的收费规则列表
export function listDepartmentRule(data) {
  return request({
    url: '/auth/listDepartmentRule',
    method: 'post',
    data
  })
}
